//
//  Creature.m
//  Return Of The Lemi
//
//  Created by Paul Vishayanuroj on 11/2/09.
//  Copyright 2009 Cornell University. All rights reserved.
//

#import "Creature.h"


@implementation Creature

@synthesize maxHitPoints, currentHitPoints;
@synthesize spriteManager;
@synthesize body, shape;

// Returns the bounding box
- (CGRect) Rect 
{
	CocosNode *node = [self.spriteManager.parent.parent.parent getChildByTag:kTagParallaxNode];
	CGPoint nodePosition = CGPointMake(node.position.x, node.position.y);
	CGPoint truePosition = ccpAdd(sprite.position, nodePosition);
	return CGRectMake(truePosition.x - CONST_LEMUR_CENTER_TO_EDGE_X, truePosition.y - CONST_LEMUR_CENTER_TO_EDGE_Y, CONST_LEMUR_WIDTH, CONST_LEMUR_LENGTH);
}

- (CGPoint) getPosition
{
	return sprite.position;
}

/*
// Used to set the position of the sprite
- (void) SetPosition:(CGPoint)position
{
	sprite.position = position;
}
 */

- (void) dealloc
{
	[super dealloc];
}


@end
